<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <title>layuiAdmin 网站用户 iframe 框</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">

  <link rel="stylesheet" href="../../static/layuiadmin/layui/css/layui.css" media="all">

  <link rel="stylesheet" th:href="@{/templates/user/layuiadmin/layui/css/layui.css}" media="all">

</head>
<body>
<!--/*@thymesVar id="user" type=""*/-->
<form action="userform.html" th:action="@{/admin/update}" method="post" th:object="${user}">
  <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="padding: 20px 0 0 0;">
<div class="layui-form-item">
  <label class="layui-form-label">用户账号</label>
  <div class="layui-input-inline">
    <input type="text" name="useraccount" th:field="*{useraccount}" lay-verify="required" placeholder="请输入用户账号" autocomplete="off" class="layui-input">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">用户名</label>
  <div class="layui-input-inline">
    <input type="text" name="username" th:field="*{username}" lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">用户密码</label>
  <div class="layui-input-inline">
    <input type="text" name="password" th:field="*{password}" lay-verify="required" placeholder="请输入用户的密码" autocomplete="off" class="layui-input">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">手机号码</label>
  <div class="layui-input-inline">
    <input type="text" name="mobile" th:field="*{mobile}" lay-verify="phone" placeholder="请输入号码" autocomplete="off" class="layui-input">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">出生日期</label>
  <div class="layui-input-inline">
    <input type="date" name="birth" th:field="*{birth}" lay-verify="date" placeholder="请输入出生日期" autocomplete="off" class="layui-input">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">邮箱</label>
  <div class="layui-input-inline">
    <input type="text" name="email" th:field="*{email}" lay-verify="email" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">地址</label>
  <div class="layui-input-inline">
    <input type="text" name="address" th:field="*{address}" lay-verify="required" placeholder="请输入用户地址" autocomplete="off" class="layui-input">
  </div>
</div>
<div class="layui-form-item" lay-filter="sex">
  <label class="layui-form-label">选择性别</label>
  <div class="layui-input-block">
    <input type="radio" name="sex" th:field="*{sex}" value="m" title="男" checked>
    <input type="radio" name="sex" value="f" title="女">
  </div>
</div>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
    </div>
  </div>

<<<<<<< HEAD
  <script src="../../static/layuiadmin/layui/layui.js"></script>
=======
  <script th:src="@{/templates/user/layuiadmin/layui/layui.js}"></script>
>>>>>>> 79f201c7742deb6959a34e76e07e88e979d305ed
  <script>
  layui.config({
    base: '/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form', 'upload'], function(){
    var $ = layui.$
    ,form = layui.form
    ,upload = layui.upload ;
    
    upload.render({
      elem: '#layuiadmin-upload-useradmin'
      ,url: layui.setter.base + 'json/upload/demo.js'
      ,accept: 'images'
      ,method: 'get'
      ,acceptMime: 'image/*'
      ,done: function(res){
        $(this.item).prev("div").children("input").val(res.data.src)
      }
    });
  })
  </script>
</body>
</html>